import sys
def add(x,y):
	sum = x + y
	minusTag = False
	if sum < 0:
		minusTag = True
		sum = -sum
	origin = str(sum)
	pos = len(origin) - 1
	i = 0
	result = '' 
	while pos >0:
		result = origin[pos] + result
		i = i + 1
		if i % 3 == 0 and pos > 0 :
			result = ',' + result
		pos = pos -1
		pass
	result = origin[0] + result
	if minusTag:
		result = '-' + result
	print result
if __name__ == '__main__':
	x,y = map(int,sys.stdin.readline().split())  
	# x,y = 1000,1
	add(x,y)